home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Popular Request
/
By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO
/
amiga3
/
ninfo12.lha
/
NodeInfo.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-01-31
|
1KB
|
50 lines
/* $VER: Online Node Info v1.2 Wed 31-Jan-94 20:15:00 */
/* Original CNet Version by Charles Johnson & Re-Written by Ignas Fast */
/* Total Re-Write by Dragon Slayer of Ami West - 707/443-4715 */
/* 2 16.8 Nodes - 4.2 Gigs - Amiga/Mac/CBM/IBM - 2.5 Gigs XXX Rated */
options results
Transmit 'n2c2Node Info:c3 Enter a full/partial node address and I will attempt to'
Transmit ' read it from the nodelist- Node addresses are in the'
Transmit ' form of c2"c7Zonec2:c7Netc2/c7Nodec2.c7Pointc2"c3, ex.:'
Transmit ' 1:125/38 Ami West BBS'
NODEINFO:
Sendstring 'n1c3Enter c7Network Address c3you wish to viewc2: c7'
QUERY;address=result
IF address = '' then DO
Transmit 'n1c2Abortingc7...n1'
EXIT
END
ADDRESS COMMAND 'run bin:getnode 'address' >pipe:GNode'
i=0
OPEN(gn,'pipe:GNode','R')
DO until eof(gn)
i=i+1;gn.i = READLN(gn)
END
CLOSE(gn)
IF word(gn.1,2) = 'not' | word(gn.1,1) = 'Invalid' then DO
Transmit 'n1c2Sorry, Node not found or improper address c2[c7'address'c2]c7...'
signal AGAIN
END
Transmit 'n1c3Node information foundc7...n1c2'
DO i = 1 to 7;Transmit gn.i;END
AGAIN:
Sendstring 'n1c3View another address? c2[c7No c2]<4c7'
GETCHAR;ANS = upper(result)
IF ANS = 'Y' then DO
Transmit 'Yes'
signal NODEINFO
END
Transmit 'n1'
EXIT